package cn.edu.lingnan.user.pojos;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Class {

    private Integer id;
    @NotEmpty
    @Pattern(regexp = "^\\S{1,20}$")
    private String name;
    @NotEmpty
    private String grade;
    private String academy;
    private Integer studentCount; //非数据库字段
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
